package com.android.bookgarden.ui;

import android.os.Bundle;
import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;

import com.android.bookgarden.R;
import com.android.bookgarden.base.BaseActivity;
import com.android.bookgarden.utli.WXPayUtils;
import com.android.bookgarden.views.CircleImageView;

import butterknife.BindView;
import butterknife.ButterKnife;

/**
 * @author XLC
 * @description 付款页面
 * @time 2018-11-28
 */
public class PaymentUI extends BaseActivity implements View.OnClickListener {
    @BindView(R.id.close)
    ImageView close;
    @BindView(R.id.title_text)
    TextView titleText;
    @BindView(R.id.ritgh_icon)
    ImageView ritghIcon;
    @BindView(R.id.ritgh_text)
    TextView ritghText;
    @BindView(R.id.avatar)
    CircleImageView avatar;

    @Override
    public void onClick(View v) {
        switch (v.getId()){
            case R.id.close:
                finish();
                break;
        }
    }

    @Override
    protected int getLayoutId() {
        return R.layout.payment_ui;
    }

    @Override
    protected void initView() {
        titleText.setText("充值");
        close.setOnClickListener(this);

        WXPayUtils.WXPayBuilder builder = new WXPayUtils.WXPayBuilder();
        builder.setAppId("123")
                .setPartnerId("56465")
                .setPrepayId("41515")
                .setPackageValue("5153")
                .setNonceStr("5645")
                .setTimeStamp("56512")
                .setSign("54615")
                .build().toWXPayNotSign(PaymentUI.this);
    }

    @Override
    public void onRequestPermissions(String str, boolean z) {

    }



}
